#include <unistd.h>
#include "csdl.h"

typedef struct
{
  OPDS h;
  MYFLT *kposx, *kposy, *kdx, *kdy, *klimit, *klimtype, *kcurve;
  MYFLT pcurve, posx, posy;
  FUNC *ftp;
} XYSPACE;

typedef struct
{
  OPDS h;
  MYFLT *kr, *ktheta, *x, *y;
} CART2POLAR;

typedef struct
{
  OPDS h;
  MYFLT *kr, *ktheta, *x1, *y1;
  MYFLT x0, y0;
} ANGLE;

typedef struct
{
  OPDS h;
  MYFLT *kdeltaR, *kdeltaTheta, *x, *y;
  MYFLT prevR, prevTheta;
} ROTATION;
